package guda.house.biz.form;

import guda.house.dal.dataobject.OfficeEmployeeDO;

/**
 * Created by well on 16/1/12.
 */
public class OfficeEmployeeEditForm extends OfficeEmployeeForm{

    private Long employeeId;

    public Long getEmployeeId() {
        return employeeId;
    }

    public void setEmployeeId(Long employeeId) {
        this.employeeId = employeeId;
    }

    public void initForm(OfficeEmployeeDO officeEmployeeDO){
        if(officeEmployeeDO == null){
            return;
        }
        setUserName(officeEmployeeDO.getUserName());
        setVarId(officeEmployeeDO.getVarId());
        setUserPhone(officeEmployeeDO.getUserPhone());
        setVillageId(officeEmployeeDO.getVillageId());
    }
}
